﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace TMHuy
{
    /**
     * Store heroinfo and Hero configuration
     **/ 
    public class HeroInfo
    {
      

        public int health;
        
        public int fighting;
        public bool available;
        public int cp;

        public int pointsToAdd;

        public ArrayList equippedItems;
        public ArrayList unequippedItems;

        public int a;
        public string c;
        public HeroInfo(int health, int fighting, bool available, int pointsToAdd)
        {
            this.health = health;
            this.fighting = fighting;
            this.available = available;
            this.pointsToAdd = pointsToAdd;
        }

        public bool hasUneqItem(string name)
        {
            foreach (Item item in unequippedItems)
            {
                if (item.name.Contains(name))
                {
                    return true;
                }
            }
            return false;
        }
    }
}
